#ifndef COURIERSYS_H
#define COURIERSYS_H

#include <QWidget>
#include <QSqlTableModel>
#include <QSqlQuery>
#include "user.h"
#include <QMessageBox>
#include <QTimer>
#include "client.h"

namespace Ui {
class CourierSYS;
}

class CourierSYS : public QWidget
{
    Q_OBJECT

public:
    explicit CourierSYS(QString username, QWidget *parent = 0);
    ~CourierSYS();
    void modelInit();
    void taskReceived();
    void showBalance();

private:
    Ui::CourierSYS *ui;
    QString username;
    QSqlTableModel *model;
    Client *client;
};

#endif // COURIERSYS_H
